package com.gupaoedu.starter.autoconfiguration;

import com.gupaoedu.starter.HelloFormatTemplate;
import com.gupaoedu.starter.format.FormatProcessor;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * <p>
 *
 * </p>
 *
 * @author Nicky
 * @since 2019-07-13
 */
@Configuration
@Import(FormatConfiguration.class)
@EnableConfigurationProperties(HelloPropertes.class)
public class HelloConfiguration {

    @Bean
    public HelloFormatTemplate helloFormatTemplate(FormatProcessor formatProcessor,HelloPropertes helloPropertes){
        return new HelloFormatTemplate(formatProcessor,helloPropertes);
    }
}
